package com.uuzz.lottery.agent.gateway.protocol.http.impl;

import com.uuzz.lottery.agent.gateway.protocol.http.IHttpProtocolOut;

import javax.servlet.http.HttpServletResponse;
import java.io.OutputStream;


/**
 * 
 * <br>类 名: HttpProtocolOutImpl
 * <br>描 述: http 协议输出参数
 * <br>作 者: liuqing
 * <br>创 建： 2015年5月28日
 * <br>版 本：1.0.0
 *
 * <br>历 史: (版本) 作者 时间 注释
 */
public class HttpProtocolOutImpl implements IHttpProtocolOut {

    /**
     * 构造方法
     * @param httpServletResponse http请求
     * @param outputStream http输入流
     */
    public HttpProtocolOutImpl(HttpServletResponse httpServletResponse, OutputStream outputStream){
        this.httpServletResponse=httpServletResponse;
        this.outputStream=outputStream;
    }
    /**
     * http 响应
     */
    private final HttpServletResponse httpServletResponse;

    /**
     * http 输出流
     */
    private final OutputStream outputStream;

	public HttpServletResponse getHttpServletResponse() {
		return httpServletResponse;
	}

	public OutputStream getOutputStream() {
		return outputStream;
	} 
}
